﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core;
using COFE.Core;
using COFE.Core.Actions;
using COFE.Core.Utils;

namespace COFE.Core.Actions
{
    public static class IFileSystemInfoEntryListExtension
    {
        public static IEntryList ToEntryList(this IFileSystemInfo entry)
        {
            return new OneEntryList(entry);
        }

        public static IEntryList ToEntryList(this IFileSystemInfo[] entries)
        {
            var retVal = new CustomEntryList("");
            retVal.AddRange(entries);
            return retVal;
        }        
    }
}
